package com.ayf.payment.game.api.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "g_merchant_gift_log")
public class MerchantGiftLog implements Serializable {
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    @Column(name = "merchant_id")
    private Integer merchantId;

    @Column(name = "game_info_id")
    private String gameInfoId;

    @Column(name = "game_info_name")
    private String gameInfoName;

    @Column(name = "openId")
    private String openId;

    @Column(name = "account")
    private String account;

    @Column(name = "amount")
    private BigDecimal amount;

    @Column(name = "partition_id")
    private String partitionId;

    @Column(name = "partition_name")
    private String partitionName;

    @Column(name = "`status`")
    private Integer status;

    @Column(name = "create_time_index")
    private Integer createTimeIndex;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "last_update_time")
    private Date lastUpdateTime;

    private static final long serialVersionUID = 1L;
}